package com.ruoyi.performance.service;

import java.util.List;
import com.ruoyi.performance.domain.TTeacherAssess;

/**
 * 考核自评Service接口
 * 
 * @author ruoyi
 * @date 2022-12-24
 */
public interface ITTeacherAssessService 
{
    /**
     * 查询考核自评
     * 
     * @param id 考核自评主键
     * @return 考核自评
     */
    public TTeacherAssess selectTTeacherAssessById(Long id);

    /**
     * 查询考核自评列表
     * 
     * @param tTeacherAssess 考核自评
     * @return 考核自评集合
     */
    public List<TTeacherAssess> selectTTeacherAssessList(TTeacherAssess tTeacherAssess);

    /**
     * 新增考核自评
     * 
     * @param tTeacherAssess 考核自评
     * @return 结果
     */
    public int insertTTeacherAssess(TTeacherAssess tTeacherAssess);

    /**
     * 修改考核自评
     * 
     * @param tTeacherAssess 考核自评
     * @return 结果
     */
    public int updateTTeacherAssess(TTeacherAssess tTeacherAssess);

    /**
     * 批量删除考核自评
     * 
     * @param ids 需要删除的考核自评主键集合
     * @return 结果
     */
    public int deleteTTeacherAssessByIds(Long[] ids);

    /**
     * 删除考核自评信息
     * 
     * @param id 考核自评主键
     * @return 结果
     */
    public int deleteTTeacherAssessById(Long id);

    /**
     * 完成自评
     * @param id
     * @return
     * @throws Exception
     */
    String changeState(Long id) throws Exception;

    /**
     * 完成审核
     * @param id
     * @return
     */
    String auditPass(Long id);

    String generatePerformance();
}
